{%include file="m.index.header.tpl.php"%}<!--头部 end-->
<!--主体部分-->

<div class="container" style="margin-top:70px;">
	<div class="row" style="margin-right:10%;">
		<div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="index.php?a=manage.manageclassifyadd&manage_type={%$manage_type%}" style="width:30%">增加</a></div>
	</div>
	<!--row  end-->

	<div class="row" style="margin-top:10px;">
		<form action="" method="get">
			<div class="col-sm-12 distance" >
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 control-label">标题:</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" value="{%$manage_title%}" name="manage_title">
					</div>
				</div>
			</div>
			<div class="col-sm-12 distance" >
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 control-label">班级:</label>
					<div class="col-sm-10">
						<select class="form-control" name="class_id" >
							<option value="">全部</option>
							{%foreach from=$class_lists key=key item=value%}
							<option value="{%$value.class_id%}"{%if $value.class_id ==$class_id%}selected{%/if%}>{%$value.class_name%}</option>
							{%/foreach%}
						</select>
					</div>
				</div>
			</div>
			<div class="col-sm-12 distance hierarchy" >
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 control-label">开始日期:</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" value="{%$from%}" id="datepicker" name="from">

					</div>
				</div>
			</div>
			<div class="col-sm-12 distance hierarchy2" >
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 control-label">结束日期:</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" value="{%$to%}" id="datepicker2" name="to">

					</div>
				</div>
			</div>
			<div class="col-xs-12  distance hierarchy2">
				<div class="form-group text-center" style="padding-top:0px;">
					<input type="hidden" name="a" value="manage.manageclassifylist">
					<input type="hidden" name="manage_type" value="{%$manage_type%}">
					<button type="submit" class="btn btn-success" style="width:80%">搜索</button>
				</div>
			</div>
		</form>
	</div>
	<div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
		{%foreach from=$manage_lists key=key item=value%}
		<table class="table table-striped table-bordered text-center"  id="middles">
			<tr>
				<td>年级</td>
				<td>{%$value.grade_name%}</td>
			</tr>
			<tr>
				<td>班级</td>
				<td>{%$value.class_name%}</td>
			</tr>
			<tr>
				<td>标题</td>
				<td>{%$value.manage_title|truncate:30:"..." %}</td>
			</tr>
			<tr>
				<td>提交者</td>
				<td>{%$value.user_name%}</td>
			</tr>
			<tr>
				<td>提交日期</td>
				<td>{%$value.create_time%}</td>
			</tr>
			<tr>
				<td>操作</td>
				<td ><a type="button" class="btn btn-warning  " href="index.php?a=manage.manageclassifyinfolist&manage_type={%$manage_type%}&manage_id={%$value.manage_id%}" >查看</a>
					<a type="button" class="btn btn-danger  " href="index.php?a=manage.manageclassifyupdate&manage_id={%$value.manage_id%}&manage_type={%$manage_type%}" >修改</a></td>
			</tr>
		</table>
		{%/foreach%}
	</div>
</div>
<!--container  end-->

<!--主体部分  end-->
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
<!--container  end-->

<!--底部end-->
<script src="mstatic/js/jquery.min.js" type="text/javascript"></script>
<script src="mstatic/js/bootstrap.min.js"  type="text/javascript"></script>
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历-->
<!--日历-->
<script>
	$(function() {
		$( "#datepicker" ).datepicker({

			changeMonth: true,
			changeYear: true

		});

		$( "#datepicker2" ).datepicker({

			changeMonth: true,
			changeYear: true

		});
	});
</script>
</body>
</html>
